package com.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.common.PaginatedResult;
import com.persistence.TFootballTeam;
import com.persistence.dao.TeamDao;

@Service("teamService")
public class TeamServiceDao implements TeamService {

	@Autowired
	TeamDao teamDao;
	
	
	
	public void setTeamDao(TeamDao teamDao) {
		this.teamDao = teamDao;
	}

	
	public TeamDao getTeamDao() {
		return teamDao;
	}


	@Override
	@Transactional(readOnly=false)
	public TFootballTeam insert(TFootballTeam transientInstance) {
		// TODO Auto-generated method stub
		return teamDao.insert(transientInstance);
	}

	@Override
	@Transactional(readOnly=false)
	public TFootballTeam update(TFootballTeam detachedInstance) {
		// TODO Auto-generated method stub
		return teamDao.update(detachedInstance);
	}

	@Override
	@Transactional(readOnly=false)
	public Boolean remove(TFootballTeam persistentInstance) {
		// TODO Auto-generated method stub
		return teamDao.remove(persistentInstance);
	}

	@Override
	@Transactional(readOnly=false)
	public Boolean removeList(List<TFootballTeam> list) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	@Transactional(readOnly=true)
	public TFootballTeam findById(Integer id) {
		// TODO Auto-generated method stub
		return teamDao.findById(id);
	}

	@Override
	public List<TFootballTeam> findByProperty(String propertyName,
			Object value, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return teamDao.findByProperty(propertyName, value, rowStartIdxAndCount);
	}

	@Override
	public List<TFootballTeam> findAll(int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return teamDao.findAll(rowStartIdxAndCount);
	}

	@Override
	public List<TFootballTeam> findLikeProperty(String propertyName,
			Object value, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TFootballTeam> findLikeMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TFootballTeam> findByMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countAll() {
		// TODO Auto-generated method stub
		return teamDao.countAll();
	}

	@Override
	public Integer countLikeProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countByProperty(String propertyName, Object value) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countLikeMapOfProperties(Map<String, Object> propertiesMap) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Integer countByMapOfProperties(Map<String, Object> propertiesMap) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PaginatedResult<TFootballTeam> paginateLikeMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PaginatedResult<TFootballTeam> paginateAll(
			int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public PaginatedResult<TFootballTeam> paginateByMapOfProperties(
			Map<String, Object> propertiesMap, int... rowStartIdxAndCount) {
		// TODO Auto-generated method stub
		return null;
	}

}
